<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PersonalAlbumModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.Tooltip(MyAlbum.Services.Configuration.ConfigValues.LogEntrances)%>

<table>
    <tbody>
        <tr>
            <th>
                <a href="javascript:void(0)" onclick="doSort('Id');return false;"><%=Model.Localize("Entrance.Id") %></a>
            </th>
            <th>
                <a href="javascript:void(0)" onclick="doSort('IP');return false;"><%=Model.Localize("Entrance.IP") %></a>
            </th>
            <th>
                <a href="javascript:void(0)" onclick="doSort('Page');return false;"><%=Model.Localize("Entrance.Page") %></a>
            </th>
            <th>
                <a href="javascript:void(0)" onclick="doSort('SessionId');return false;"><%=Model.Localize("Entrance.SessionId") %></a>
            </th>
            <th>
                <a href="javascript:void(0)" onclick="doSort('TimeStamp');return false;"><%=Model.Localize("Entrance.Date") %></a>
            </th>
            <th>
                <a href="javascript:void(0)" onclick="doSort('Details');return false;"><%=Model.Localize("Entrance.Details") %></a>
            </th>
        </tr>
   
<%foreach (var item in Model.Entrances)
  {%>
    <tr>
        <td>
            <%=item.Id %>
        </td>
        <td>
            <%=Html.Encode(item.IP) %>
        </td>
        <td>
            <%=Html.Encode(item.Page) %>
        </td>
        <td>
            <%=Html.Encode(item.SessionId) %>
        </td>
        <td>
            <%=item.Timestamp %>
        </td>
        <td>
            <%=Html.Encode(item.Details) %>
        </td>
    </tr>
      
  <%} %>
   </tbody>
</table>

</asp:Content>
